<% if flash[:error] %><div><%= flash[:error] %></div><% end %>
<%=session[:advertisment_id] -%>
<div class="post3-container">
  <div class="post-left-column">
      <div class="post-steps-header">
          <%= image_tag "post-step-3.jpg", :height=>"137px", :border=>"0", :width=>"665px;" -%>

      </div>
      <div class="post3-inner">
          <div class="step-3-text">
          STEP 3. Manage your account to get responses directly to you through sms or emails.
          </div>










          <div class="Manage-user-fields">Manage account<br/><br/>
            	<div class="User-field-name">
                	Name<br/><br/>
                    <%if !@advertisment.user.email.nil?%> Email<br/><br/><%end -%>
                    <%if !@advertisment.user.mobile_no.nil?%> Mobile No.<br/><br/><%end -%>
                    University
                </div>
            	<div class="User-field-value">

                    <div class="user-field-fullname" id="user-field-fullname">
                        <div class="user-field-fullname-value" id="user-field-fullname-value" style="width:80%;float:left;"><%=@advertisment.user.full_name -%></div>
                        <div class="change-user-field"><%= link_to_remote "Change" ,:url => {:controller=>"post",:action => "edit_full_name",:id=>@advertisment.user.id,:full_name => @advertisment.user.full_name} , :update => "user-field-fullname" -%></div><br/><br/>
                    </div>
                     <%if !@advertisment.user.email.nil?%>
                           <div class="user-field-email" id="user-field-email" style="width:80%;float:left;">
                              <div class="user-field-email-value" id="user-field-email-value"><%=@advertisment.user.email -%></div>
                              <div class="change-user-field"><%= link_to_remote "Change" ,:url => {:controller=>"post",:action => "edit_email",:id=>@advertisment.user.id,:email => @advertisment.user.email} , :update => "user-field-email" -%></div><br/><br/>
                          </div>
                    <%end -%>
                  <%if !@advertisment.user.mobile_no.nil?%>
                           <div class="user-field-mobile" id="user-field-mobile" style="width:80%;float:left;">
                              <div class="user-field-mobile-value" id="user-field-mobile-value"><%=@advertisment.user.mobile_no -%></div>
                              <div class="change-user-field"><%= link_to_remote "Change" ,:url => {:controller=>"post",:action => "edit_mobile",:id=>@advertisment.user.id,:mobile => @advertisment.user.mobile_no} , :update => "user-field-mobile" -%></div><br/><br/>
                          </div>
                    <%end -%>


                    <div class="user-field-college" id="user-field-college" style="width:80%;float:left;">
                        <div class="user-field-college-value" id="user-field-college-value"><%=@advertisment.university.name -%></div>
                        <div class="change-user-field"><%= link_to_remote "Change" ,:url => {:controller=>"post",:action => "edit_university",:id=>session[:advertisment_id],:university => @advertisment.university.name} , :update => "user-field-college" -%></div><br/><br/>
                    </div>
                </div>

            </div>



          <div class="preview-edit-ad">
              <a href="">Preview Ad</a> | <%=link_to "Edit Ad", :controller=>"post", :action=>"edit_post" -%>          </div>
        <div class="ad-response-option">
              <div class="response-option-text">Recieve responses by:</div>
              <div class="response-options"><input type="checkbox" name="response-by" value="Email"/>Email<br/>
                                            <input type="checkbox" name="response-by" value="SMS"/>SMS</div>
        </div>
          <div class="also-interested-in">
              <div class="also-interested-text">Also Interested in:</div>
              <div class="also-interested-options"><input type="checkbox" name="also-interested" value="Job"/>Job<br/>
                                                   <input type="checkbox" name="also-interested" value="Gadgets"/>Gadgets
              </div>
              <div class="also-interested-options"><input type="checkbox" name="also-interested" value="Housing"/>Housing<br/>
                                                   <input type="checkbox" name="also-interested" value="Books"/>Books
              </div>
              <div class="also-interested-options"><input type="checkbox" name="also-interested" value="Vehicles"/>Vehicles<br/>
                                                   <input type="checkbox" name="also-interested" value="Events"/>Events
              </div>
            <div class="also-interested-options"><input type="checkbox" name="also-interested" value="Coaching"/>Coaching<br/></div>
          </div>
          <div class="send-mails">
              <input type="checkbox" name="send-mail" value="from-service-provider"/>Send me mails from Service Providers<br/>
              <input type="checkbox" name="send-mail" value="from-smc"/>Send me mails about SearchMyCampus.com and new features<br/>
          </div>
          <div class="post-user-account">
              Create a user account to edit or delete your ads or view responses<br/><br/>
              <div class="user-account-fields">
                  Login Email ID<br/><br/>
                  Password<br/><br/>
                  Confirm Password
              </div>
              <div class="user-account-values">
                <input type="text" name="account-username" class="input-box-dimension" size="30" maxlength="30"/ ><br/><br/>
                <input type="password" name="account-password" class="input-box-dimension" size="30" maxlength="20"/ ><br/><br/>
                <input type="password" name="account-username" class="input-box-dimension" size="30" maxlength="20"/ >
              </div>
              <div class="dont-have-email">
                  <a href="">Don't have an Email Id?</a>
              </div>
          </div>
          <div class="proceed-button3">

               <%= image_tag "post-ad.jpg", :height=>"24px", :border=>"0", :width=>"68px;" -%>
                        </div>
          </div>
              <div class="verification-box3">
                  <div class="verification-text3">
                      A verification code has been sent to you through SMS. Enter the code below and click Verify.
                  </div>
                  <div class="enter-verify-code">
                  <input type="text" class="enter-code" value="Enter code" size="10" maxlength="5"/>&nbsp;&nbsp;
                   <%= image_tag "verify-code.jpg", :alt=>"Verify", :height=>"20px", :border=>"0", :width=>"50px;" -%>
                   <div class="code-example">
                   Code E.g. 67194
                   </div>
              </div>
               <div class="not-yet-text">
                      Still haven't recieved the SMS
                  </div>
                  <div class="re-sms">
                  <a href="">Request another SMS</a>
                  </div>
               <div class="contact-smc">
                      or mail us at searchmycampus@gmail.com and we will verify it for you
                  </div>

      </div>
    </div>



  <div class="post-right-column">
      <div class="post-tips">
        <%= image_tag "post-tips.jpg", :alt=>"Verify", :border=>"0px" -%>
      </div>
  </div>
</div>
